package com.cll.netty.netty.dubborpc.provider;

import com.cll.netty.netty.dubborpc.publicinterface.HelloService;

public class HelloServiceImpl implements HelloService {

    private static int count = 0;
    @Override
    public String hello(String msg) {
        System.out.println("---->" + msg);
        if(msg != null){
            return (++count)+"服务器接收到的信息为【"+msg+"】";
        }else{
            return (++count)+"服务器接收到信息";
        }
    }
}
